package com.openmind.pichosting;

import com.openmind.pichosting.datasources.DynamicDataSourceConfig;
import lombok.extern.slf4j.Slf4j;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.boot.web.servlet.support.SpringBootServletInitializer;
import org.springframework.context.annotation.EnableAspectJAutoProxy;
import org.springframework.context.annotation.Import;
import org.springframework.stereotype.Controller;

/**
 * Hello world!
 */
@Slf4j
@Controller
@SpringBootApplication
@EnableAspectJAutoProxy
//@ImportResource(locations = {"classpath*:spring/spring-context.xml"})
@Import(DynamicDataSourceConfig.class)
public class PicHostingAppMain extends SpringBootServletInitializer {

    public static void main(String[] args) {
        SpringApplication application = new SpringApplication(PicHostingAppMain.class);
        application.run(args);
    }
}
